<template>
    <view class="">
        <web-view :webview-styles="webviewStyles" :src="hrefUrl" @message="getMessage"></web-view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
                hrefUrl: 'https://www.runoob.com/w3cnote/flex-grammar.html',
                webviewStyles: {
                    progress: {
                        color: '#FF3333'
                    }
                },

            }
        },
        onLoad(options) {


        },
        methods: {
            getMessage(event) {
                uni.showModal({
                    content: JSON.stringify(event.detail),
                });
            },

        }
    }
</script>

<style lang="scss">

</style>